package com.chixing.day07_adstract.prototype;

public class ProductTest {
    public static void main(String[] args) throws CloneNotSupportedException {
        Product product=new Product(101,"矿泉水",1.9f);

        Object cloneobj=product.clone();
        System.out.println("原始对象" + product);
        System.out.println("克隆对象" + cloneobj);

        //创建一个



//        //product 的克隆对象
//        Product proclone=new Product();
//        proclone.setProId(product.getProId());
//        proclone.setProName(product.getProName());
//        proclone.setProPrice(product.getProPrice());
    }
}
